package formdata

import "gitee.com/enjoy_5/goods-rpc/proto/goods"

type CreateSpikesActivity struct {
	UserID         int64  `json:"user_id"`
	SpikesTitle    string `json:"spikes_title"`
	SpikeStartTime string `json:"spike_start_time"`
	SpikeEndTime   string `json:"spike_end_time"`
}
type GetSpikesActivityList struct {
	Page     int64 `json:"page"`
	PageSize int64 `json:"page_size"`
}
type GetSpikesGoodsInfo struct {
	GoodsID    string `json:"goods_id"`
	ActivityID string `json:"activity_id"`
	SkuID      string `json:"sku_id"`
}

type GetSpikesGoodsList struct {
	Page             int64 `json:"page"`
	PageSize         int64 `json:"page_size"`
	SpikesActivityID int64 `json:"spikes_activity_id"`
}
type DeleteSpikesActivity struct {
	SpikesID int64 `json:"spikes_id"`
	UserID   int64 `json:"user_id"`
}
type CreateSpikesGoodsSku struct {
	SpikesID    int64   `json:"spikes_id"`
	SkuID       int64   `json:"sku_id"`
	SpikesStock int64   `json:"spikes_stock"`
	Price       float32 `json:"price"`
	SpikesPrice float32 `json:"spikes_price"`
	UserID      int64   `json:"user_id"`
}

// SpikesGoodsInfo 定义秒杀商品信息结构体
type SpikesGoodsInfo struct {
	GoodsID     int64  `json:"goods_id"`
	SkuID       int64  `json:"sku_id"`
	GoodsImg    string `json:"goods_img"`
	GoodsTitle  string `json:"goods_title"`
	SpikesStock int64  `json:"spikes_stock"`
	GoodsPrice  string `json:"goods_price"`
	SpikesPrice string `json:"spikes_price"`
}

// SpikesGoodsDetail 秒杀商品信息
type SpikesGoodsDetail struct {
	GoodsID       int64
	Title         string
	Point         int64
	Description   string
	Img           string
	PropertyInfos []*goods.GoodsPropertyInfo
	SpikesID      int64
	SkuID         int64
	Price         float32
	SpikesStock   int64
	SpikesPrice   string
}
